change preg_replace_callback to preg_replace