pretty printer - fixed newArray