there are some problems in testing the patterns