add documentation for method