updating ticks every 1 sec