add overwrite for arr