compute changes