correct the code used to get the yi an detail