unified some functions with getItemFn + added getCGroupItem function