update to include sleep