removed debugging printfs