correcting sleep script