use class method for get_parent