modification needed for #43; needed to use $print member prepared by the controller