minimum of buttons connected