change create group logic