one piece lookahead implemented