Improvement of production processes by measuring