adding in voting functionality