correct some computations