adding relations to models