updated to array