first commit wait.c