using usleep instead of sleep