code change for timer