code for chunk size