changed pattern to String[]