trying to implement search function, not working yet