checking if things have changed