use pattern, not Pattern.