added simple search function