Update helper_fcns.cpp