add method for list