change sleep to 1 second