updated relation stuff
example code