updated the lag value for negative lag