begin selectGetLinks