updating formula