add out-of-bound exceptions