changed variable names from boundingBox to dimension