change votes logic