adding exceptions to method