better usage of metamodels api