separated print functions from main file