modify: move tracking code into head