added pdb at end of decoding