links function combines data from multiple calls