modify "put" function(original "print" function)