for moving counter