use pipe to pass data between parent and child process