cleanup and last chapter