better output for arrays