update dualpal.cpp