make head branch variable