add relationship function in helper