How to work with HDR functions