avoids nullpointer