added vote functions