remove unnecessary array methods