Update forward.cpp