prevent NPE
make code clearer to read