generate links