in the middle of the maching algorithm