Question: do i need a transit visa for connecting flight?
Answer: Yes. There is no transit at US airports and you will need to clear both Immigration and Customs at your first point of entry into the US regardless. You will need either an ESTA or a Visa.