changing retrieve api