constructing header