"better" checking, still not entirely correct
Remove duplicates form partial interpolants