change lead tracing to keep track of lead id