error in metrics