working on voting functionality