changed head of the file