updating cache inverse