generating previous changes