fixes #4 . Matching method.