change function to avoid delete web.config