adjusted sleep to 1 second