making sure empty relations are created where appropriate