change voting func