preventing error on null