updating cache and memory classes