added smart table, but not working yet...