added call to arrow function and sleep on rotate