removed box logic from library