make change in group if undefined

not sure this is the best way to handle