added lex_loop, loop_count in data