modify calculation methods of metrics