fixed the non typage of result