map function
switch the headers