embroidery machine optimization