finish vote logic