better array handling5