should write branch not head