in case of nil pointer