working version of sa search