refactoring symbol lookup table