         }
         
         // after
-        self.addSubview(after)
-        afterBorder.layoutTop(after)
-        afterBorder.layoutLeft(after)
-        afterBorder.layoutRight(after)
+        self.addSubview(after.view)
+        after.addTopBorder()
+        after.addLeftBorder()
+        after.addRightBorder()
         
-        after.translatesAutoresizingMaskIntoConstraints = false
-        after.snp.makeConstraints { (make) in
+        after.view.snp.makeConstraints { (make) in
             make.centerX.equalToSuperview()
-            make.bottom.equalTo(main)
+            make.bottom.equalTo(main.view)
             make.width.equalToSuperview().multipliedBy(8 / 34.0)
             make.height.equalToSuperview().multipliedBy(13 / 34.0)
         }
         
-        beforeBorder.set(color: .white)
-        mainBorder.set(color: .white)
-        afterBorder.set(color: .white)
-        
+        setLine(.white)
         self.backgroundColor = UIColor.red
     }
     
     func setLine(_ color: UIColor) {
-        beforeBorder.set(color: color)
-        mainBorder.set(color: color)
-        afterBorder.set(color: color)
+        before.set(color: color)
+        main.set(color: color)
+        after.set(color: color)
     }
 }

        }
    }
    
    func layoutBottom(_ superView: UIView) {
        superView.addSubview(bottom);
        bottom.snp.makeConstraints { (make) in
            make.left.equalToSuperview()
            make.right.equalToSuperview()

        }
    }
    
    func addRightBorder() {
        view.addSubview(right);
        right.snp.makeConstraints { (make) in
            make.top.equalToSuperview()
            make.right.equalToSuperview()
