# Substitute method for setCurrentLead() on the LeadSubscriber

**URL:** <https://forum.mautic.org/t/substitute-method-for-setcurrentlead-on-the-leadsubscriber/15628>\
**Category:** Development\
**Created:** [August 13, 2020, 4:21pm UTC](https://forum.mautic.org/t/substitute-method-for-setcurrentlead-on-the-leadsubscriber/15628 "2020-08-13T16:21:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter\_br](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_br/32/4008_2.png) [@peter\_br](https://forum.mautic.org/u/peter_br)\
**Post date:** [August 13, 2020, 4:21pm UTC](https://forum.mautic.org/t/substitute-method-for-setcurrentlead-on-the-leadsubscriber/15628/1 "2020-08-13T16:21:44Z")

</div>

I’m updating a plugin I developed for the Mautic 3.x. In this plugin I use a LeadSubscriber to check a field of the incoming lead and either add or not a DNC status (using the `addDncForContact()` method) based on the analysis. On 2.x versions of Mautic I just needed to use this method, call the `setCurrentLead()` from the Lead Model to save it and it was good to go. However, I found out that the `setCurrentLead()` method is now depracated, but didn’t managed to find out how I’m supposed to do this operation now. Could someone help me out with this? I already checked out the upgrade file for 3.x on github, it says to use the _ContactTracker_ instead, however I didn’t had success using it.
