renamed class to regex