slight modification to regex pattern