added FEC encoder