implemented gll_clear plus tests