done till partition from the book