use global syntax for keeporiginal flag