parent pseudo code