ostensibly fixed everything except output