passing connection into voter instance