fix headers() method