service converting to hdr in controller