automatical measurement