fixed format and added print command