added sleep for 1 sec