avoid null pointer on arguments