add alg to count votes