prependArrayWithIndex