fixed print() not printing summary recursively