added Exceptions
added exceptions