started writing lex file