fixed so runs a lot faster, not converting from string to int during every comparison