add voted codes

voted function works