ticks: change if to elif