modified rnn and datasets