small update to turn mutable array to normal array