altered tick to change direction