nearest now seems to work
implemented contains()