added check for the existence of changes from the last version