better chunking using average