now actual bytes read is used