added parentID functionality