remove some error detection