gnatt resizing done with new scaling alorithm