junk and test functions