write headsize in comments