eliminate hardcoded sleep