started addeding in search function. need to work on this more