added sw and ne search method