using macro for sleep time