changing sleep to 1 sec