put header in the right place