prevent silent nullpointerexception