framing out model function for getParents