move some code into the Chunk object