changed to setpid_func and debug print out id number