updates metrics