added max attr to list method