tried to eliminate the regexp overflow error for large models