moved vote cloud code