fix problem with long output