when I turn the ignition I only get a click. sounds like underhood passager side on 2002 Hyundai XG350

sometimes it would start,now it will not just a click. it is a 2002 hyundai xg350

Asked by for the 2002 Hyundai XG350
starter gone bad
no starter works fine. had it checked.