add methods for Array