added majority test