debugged planarization