compute LG