collapsed code