added hdr passing