it is working for chunks