typo fix and change to use time.time()