wrap head section as code