check background of groups to determine transition. resolves #599.