I came to the US in 2000 on a H-4, as a dependent of my father. When I turned 21 in 2006 I switched to a F-1 visa, and after graduation I worked from Jan 2007 to Dec 2007 on OPT. Would I file as resident or non-resident for 2007? Also my employer withheld FICA. I am from Pakistan. Would I also be able to claim $5000 deductible under the tax treaty? Thank you.