make timer_write maybe a bit faster