some modification for dynamic linkling