exists method logic changed