refactoring plane