prevent possible nullpointer