updated vote file for total function