added TDnode *prev; to struct tdnode