refactored boxesText