added a simple search function