added a "tick" to know where you are in the loop