make getBoxSize() a public method