fixed metric formatting issues and added a specific interface for formatting