replaced redundant $themeinfo variable