adding array methods