adjusting for lag window