problem in assigning groups