WIP: make resize a private method, improve docstring