changed the count back to the right way