adding link tables to patterns