changed sleep from 10 to 1 sec