work on vote endpoint