second version of relation entity, relations exists on every function