handling few exceptions