started adding simple/complex table mode