draw right triangle modified