adjust wrapper function for retrieve