added print to controller