added lookahead to index