add table and classtoinstance usage