use nanosleep, not usleep