fixed errors

removed the HEAD code.