remove references to native array methods