additional modification on sandborx/rnn