vote function trail