add array and learned scoping