advanced version to 1.2.2
draw trim mark for least length