function made to find child information struct. Process wait rough draft made