step 2: clean up incomprehensible sketch.