initial version
return real chunk size