cleanup after assembledata