updated popularity vote, still buggy