updated sleep calls

simplified sleep into a single routine