fixed gsub temp issue from previous commit