modified script to extract results -handles other and text instead of sentence