plane resizing, refactoring