uncommented plotting.main