update metrics