extracted a no_lead query method