added new constraint on group addition

minor changes also