primary clean up