print via print function in main command