fixing up ticker function