corrected gsub