WIP: seperate S_hv_search