implement head table