fixed some gsub things