changing the array to 1 from 0