update metric