TODO: finish constructing header based on other header and colission checking