before using chunks