added search function bray