resizing proportional to numeric var