only change parents when parents are changed.