remove model function