the closure starts the sequence of automatic measurement