implement get_dep and set_dep
testing: code for testing