fixed the inversion of running metrix