implemented expiry of timer