addHeaders func added