correct samples for changed api