voting results work. Some ugly code