fixed small problem with eliminteTuples code