recursily update parents