update find sp logic