modified with voting