add method in array and list