switched to regex checking