add chunking, but with a little bug