check arrry value
modify index