array update method