adding print() command to more nodes