implement chunk operator