continued work on search function