use parent_id and child_id instead of id