added pretty print for array