removed print statements from pdco.m to improve speed