was creating a mutablearray instead of a plain old array, using a for loop for the accessor