add exception for nil value + change exception messages