took out requirement for commits array in update function