added gsub block