adding inverse relationships, empty classes for matching