using links dynamically