eliminate global regex var