glossary function logic finished