refactored _generate_overhead/_visualize_method in class Visualize