fix docs of group_structures function