optimize
create relationship object