there is mispelling with kChunckSize variable, it should be kChunkSize