create process for adding arrays