Write array version