I am a International student on F1 from India, I received a 1098-T and 1042-S (income code 16) form. entering my 1042-s amount in credits& deductions section correct?

I have been in the US for  4 years. After researching I had entered my box 10 amount from 1042-s into the Withholding Not Already entered on W-2 or 1099 in the Deductions and Credits section. Is that the right way to get my refund for 1042-s?