headers and add determinant