removing time import and sleep