better reuse of the resize() function