mutating an array