implemented other calc of box sizes.