switched loc search method