allow empty patterns