corrected linking problem for samples