headSize section adjusted