timer handling implemented