added 1 second sleep