added CLG Algorithm