upvote/downvote rewrite