improved syntax checking
removed unused styles