profiling and system.out.print cleanup