fixed linking problem