refactored box.