prevent null pointer