updating metrics matrix