refactor
augmentArray seems to work