replaced Array.prototype._select with Array.prototype.filter