change gsub order