added auto grow/shrink