add write capability to arrays