cleanup and assignment link