corrected out of bound exception