Update RGAssign.cpp