renaming extract links method for readability