changing data to chunk