insert function hdrtest