switched to array.prototype