renamed groups to types