optimization to drawing