fixed problem relative to models relationship and missing class's