now can write headers