update mani.cpp