header should almost be done