adapted to current trunk of LGD