add docstring to initialize method