implemented empty-groups command