changed to getHeaders