better array handling2