tried some more to calculate the box size, failed