now can do something when counter reaches a value