preventing error issue