added majority rule