added voting functions