merged optimized lookahead with polinas changes for wednesday