fixed the linking but the test fails