handle chunk sizes