added code to save chunk group