changed bingSearch to function acceptor