slimed better alternative to create array
update index other than positive number