fixing headroom example so it works