sleep.c code condened