Looking at profiler gprof
refactoring...
refactoring...