removing time.sleeps