add function delay