added relation functions

asdf