renamed head file to headtail file