refactor ticks