better array handling4