initialize metrics correctly