refactor find_vote method