working on recurrent net decoder