add table memory control