better array handling7