fix output stuff