store whether box or loop