implemented voting feature