fixed signature of print() functions