finish majority problem