reordered code for valid reference calling; shape.bounding now scales 8-fold for right result