added inGroup bool to intersection