check first if there are changes