something that works for the sample data but is too slow for real data
clean up parenthesis a bit
cleaned them up a bit more