sleep time should not be hardcoded