replaced preg_replace using /e modifer with preg_replace_callback as /e modifer depreciated in 5.5