committing majority vote code