add retval for primitive intersect