         titleLabel.translatesAutoresizingMaskIntoConstraints = false
         topSeparator.translatesAutoresizingMaskIntoConstraints = false
         bottomSeparator.translatesAutoresizingMaskIntoConstraints = false
-        topMiddleSeparator.translatesAutoresizingMaskIntoConstraints = false
-        bottomMiddleSeparator.translatesAutoresizingMaskIntoConstraints = false
         
         //buttons
         containerView.addConstraint(NSLayoutConstraint(item: containerView,

            attribute: .bottom, relatedBy: .equal, toItem: pickerView,
            attribute: .bottom, multiplier: 1.0, constant: 0))
        bottomSeparator.addConstraint(NSLayoutConstraint(item: bottomSeparator,
            attribute: .height, relatedBy: .equal, toItem: nil,
            attribute: .height, multiplier: 1.0, constant: 0.5))
        
        containerView.addConstraint(NSLayoutConstraint(item: topMiddleSeparator,
            attribute: .centerY, relatedBy: .equal, toItem: containerView,
            attribute: .centerY, multiplier: 1.0, constant: -15))
        containerView.addConstraint(NSLayoutConstraint(item: topMiddleSeparator,
            attribute: .leading, relatedBy: .equal, toItem: containerView,
            attribute: .leading, multiplier: 1.0, constant: 0))
        containerView.addConstraint(NSLayoutConstraint(item: topMiddleSeparator,
            attribute: .trailing, relatedBy: .equal, toItem: containerView,
            attribute: .trailing, multiplier: 1.0, constant: 0))
        topMiddleSeparator.addConstraint(NSLayoutConstraint(item: topMiddleSeparator,
            attribute: .height, relatedBy: .equal, toItem: nil,
            attribute: .height, multiplier: 1.0, constant: 0.5))
        
        containerView.addConstraint(NSLayoutConstraint(item: bottomMiddleSeparator,
            attribute: .centerY, relatedBy: .equal, toItem: containerView,
            attribute: .centerY, multiplier: 1.0, constant: 15))
        containerView.addConstraint(NSLayoutConstraint(item: bottomMiddleSeparator,
            attribute: .leading, relatedBy: .equal, toItem: containerView,
            attribute: .leading, multiplier: 1.0, constant: 0))
        containerView.addConstraint(NSLayoutConstraint(item: bottomMiddleSeparator,
            attribute: .trailing, relatedBy: .equal, toItem: containerView,
            attribute: .trailing, multiplier: 1.0, constant: 0))
        bottomMiddleSeparator.addConstraint(NSLayoutConstraint(item: bottomMiddleSeparator,
            attribute: .height, relatedBy: .equal, toItem: nil,
            attribute: .height, multiplier: 1.0, constant: 0.5))
    }

        containerView.addSubview(titleLabel)
        containerView.addSubview(topSeparator)
        containerView.addSubview(bottomSeparator)
        
        pickerView.translatesAutoresizingMaskIntoConstraints = false
        doneButton.translatesAutoresizingMaskIntoConstraints = false
