added search functionality to this rep