add docstring for each method