made method able to be None