optimizing alignment drawing