changed order of sleep command (oops)