merge function tables