modify index to include head and header