added visitor to keep track of multipliers