fix the print command