adjustments in the tick() routine