now works: cgal used to change some variables