add get related fom objects function