starting work on search function