refactored plane