some changes to bg_lex
Revert "some changes to bg_lex"

This reverts commit 57bf980ef7012935f419c822d0eaf7ae50411ec4.