On recurrent neural networks