changed 2 functions to pass a reference, deleted test file