deleted some 'printf' statements. moved two lines into parent process~