compound patterns