fixes broken output