added metric max min