make it prettier prettier
fix #2
small refactoring in process_node