progress on lead_lag - its working