fixing linking problem