added code for generation of chunk id