documentation; writearray