modify Hisotry API sample