problems with getting group by name