added clasification error calculation