remove null pointer