add array methods matching
syntax refactoring