adding relationships to models