head matrix