small mod on model regexp