added comments to 'linker' function