added exceptions for values which are not part of the domain