make the switch smaller to fit in avail mem