put link defs at end