general cleanup of copy