fixing arraybounds