switched around function calls to test.