added relational model