preventing error