move tick to if