finish retrieve api