dummy variable and diagram wiring between current, previous, tmp