save more memory by using id in inlier