lsm functioning recurrent connections