added symbol checking and style inheritance