clean functions REST_funcs used in individual models