put the relationships in the correct place