write array items