adding classes to the ctc layer