updates to array s