converting shallow to medium boxes