returned correct error