fix from wait() to sleep() on time module.