modify rule pattern checker