added average to step calculation