moved sleep calls