made change for code review feedback: change to double sleep in parameter