add functionally to get person data from person code