example with global shapes and bboxes