fixed the linking