add docstring for items function