fix the multiple definition of "head"