added code for voting districts - should refactor a bit