avoid null pointer