parent id changed to pointer to parent