removed debugging printouts and code.