REM func dec