preresize
better timer