updates CHP3 changed out print() for return