make the immutable array a bit more flexible