rnn modified