I am an F1 student, and I have been filing the form 1040 through an online software for the last three years. Someone had told me that I need to file 1040 since I meet the substantial presence test. Is it correct? I've been a F1 student for the last 4 years, and have been spending 9 months each year in the US. Am I supposed to be filing form 1040NR? If so, is there any way to correct the forms I filed for the last three years?