remove broken error check that fails compilation