changed filter.word0 from groupid to group mask .. this fixes the (.. & 31) bug and allows shape to belong to more than one groups