preparation for timer