change thread.sleep to 3000