WIP generate BOL. symbol_set still buggy.
fixed symbol_set. Can be optimized.