original code
no more growing/shrinking