moving the tick method out from helper to model method