added outgoing relationship functions and expand function