checking whether changed