put header in correct place