replaced thread with timer task