populating correct right pointers