fixed print.cpp