sleep for max time it will allow