added print array and list