switching box model for all elements