decided to put analysis into main gui