removed debugging printlines