removed time sleep