linking properly