update to array