added voting mechanism