complete the function

add stim info  in the output structure