typo
add a not to the nanosleep function