added integral, generalized pointset