search and scan both working