using headers properly