added priority and votes