Just declare headerWidth here as well, since this is where it is used.