i tested the alternator and it was overcharging...it ruined the battery.

So i changed the battery with a new one and bought another good condition alternator and its still over charging...i am checking this at the battery and both times it read 17.5 at idle and went up when reved. Any ideas on what it is or what i should do?