modify array in activity