WRONG RESIDENT FILING

I filed 1040 instead of 1040NR. Can i please know how to amend and file 1040. I also claimed AOTC, and how can i give back to IRS