remove head and fix fasttorch