Update refeus_functions.cpp