use the lead function