minor changes to meanshift