make number of segments configurable on small holes