parent id clean up