finishing up search function, creating lots of lists