for avoiding incorrect action of the machine