replace boundary with axis aligned bounding box