fixed the division by zero bug and changed how many related persons are returned