now data is saved if it only changes from the last data element that was saved.