making progress, still a bug in which it is not correctly pulling out all of the values