oops, use global Metrics struct for storage