group recognition working with dictionary form