array out of bound check