only for 1d array; roi is proper