similarity: when setting indexes data array size must match indexes one