make getParent public