optimize the timer core