correct delay functions