this is function for print array