addressed memory leak by stopping ticker explicitly