generating head data