update create group logic