added generatelinks from Rogelio