refactor problems output