renaming parent_id field when present