State tax filing

yes i wasn't there for 31 days so i don't pass the substantial presence test. i think i should file as a non resident and choose foreign or us possession in the federal. Please correct me if i am wrong.

THanks for the help