refactor. Needed more refactor boxing.cpp. No comments added.