add indenting and ignore null values