updated trace flow diagram