working on getrelated implementation