adjusted to handle voting-data