use print method instead of print statement