def: update and cleanup