modifies sc_functions.