new schema + old functions newly working with parent_id