add proper sleep time