plane optimization and comments