Update normalize.r