modify ticker function