modify null pointer error