refactored searchlight
more memory efficient searchlight