added voted function beta