changed the upvotedownvote logic