clean up vote code