method..
add docstrings and more