fix time and dealy