changed sleep to 0.1