added voting input/output