udpated with support for up to 32 votes