better array handling6