added process_sentence action