fixed headers via config.yml
replaced for loop with map call