repositioning tick code