changed how generating works in viewing reports. much cleaner