removed time.sleep