replaced array with enumerable