crashing fixed, output broken