update analystic code