updated pause

timer code with tm