updates in structure
updating cache