corrections mot.cpp